home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Contributed / SpriteWorld / SpriteWorld Files / BlitPixie / Makefile next >
Encoding:
Makefile  |  2000-10-06  |  2.4 KB  |  80 lines  |  [TEXT/MPS ]

  1.  
  2. NOTE: This makefile does not work! I simply don't know enough Linux dev yet.
  3.       You're welcome to help out to update this file to match the MPW makefile
  4.       Send me the result if you do.
  5.       
  6. #------------------------------------------------------------------------------
  7. #
  8. #   Makefile for GNU make
  9. #
  10. #   Project:    BlitPixie
  11. #
  12. #   Written by: Anders F Björklund <afb@algonet.se>
  13. #
  14. #------------------------------------------------------------------------------
  15.  
  16. all:            BlitPixie BlitPixieLib
  17.  
  18. #------------------------------------------------------------------------------
  19. # Choose your tools and libraries:
  20.  
  21. SHELL           = /bin/sh
  22. CC              = cc
  23. CFLAGS          = -O2 -Wall -W -DUSE_ASSEMBLY=0
  24. AR              = ar
  25.  
  26. #------------------------------------------------------------------------------
  27.  
  28. LIB             = libBlitPixie.a
  29. SHAREDLIB       = libBlitPixie.so
  30.  
  31. SRCDIR          = Sources/ 
  32. INCDIR          = Headers/ 
  33.  
  34. #------------------------------------------------------------------------------
  35. # These are modified default build rules.  
  36. #------------------------------------------------------------------------------
  37.  
  38. .o:
  39.     $(CC) -c $(CFLAGS) -I$(INCDIR) $(SRCDIR)$*.c
  40.  
  41.  
  42. #------------------------------------------------------------------------------
  43. # These are the objects that we want to include in the library.
  44. #-------------------------------------------------------------------------------
  45.  
  46. OBJECTS =   
  47.                 BlitPixieAllBit.o
  48.                 BlitPixieClear.o
  49.                 BlitPixieCodeCompiler.o
  50.                 BlitPixieColorkey.o
  51.                 BlitPixieDoubled.o
  52.                 BlitPixieDoubleRects.o
  53.                 BlitPixieFlip.o
  54.                 BlitPixieMask.o
  55.                 BlitPixieMaskCollision.o
  56.                 BlitPixieRect.o
  57.                 BlitPixieRLE.o
  58.                 BlitPixieRLECollision.o
  59.                 BlitPixieRLECompiler.o
  60.                 BlitPixieRotoZoomer.o
  61.  
  62. #------------------------------------------------------------------------------
  63. # These are the targets.
  64. #------------------------------------------------------------------------------
  65.  
  66. BlitPixie:      $(LIB)
  67. BlitPixieLib:   $(SHAREDLIB)
  68.  
  69. $(LIB):         $(OBJECTS)
  70.     $(AR) -o $(LIB) $(OBJECTS) 
  71.  
  72. $(SHAREDLIB):   $(OBJECTS)
  73.     $(AR) -o $(SHAREDLIB) $(OBJECTS) 
  74.  
  75. clean:
  76.     /bin/rm -f *.o *~ core
  77.  
  78. clean-all:      clean
  79.     /bin/rm -f $(LIB) $(SHAREDLIB)
  80.